# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=py3-nose-timer
_pkgname=nose-timer
pkgver=1.0.1
pkgrel=5
pkgdesc="timer plugin for nosetests that answers the question: how much time does every test take?"
url="https://github.com/mahmoudimus/nose-timer/"
arch="noarch"
license="MIT"
depends="py3-nose"
makedepends="py3-setuptools"
checkdepends="py3-coverage py3-mock py3-parameterized py3-termcolor py3-colorama"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mahmoudimus/nose-timer/archive/v$pkgver.tar.gz
	assertEquals.patch
	"
builddir="$srcdir/"$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	FORCE_COLOR=1 python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
ee6b6378998db06892959056916750b094546cc2fbef32cfbdad9dd7b941c21d20eb31eab3f4a32de29b66ba5a33312dd97423778057eee24c861488c110afc7  py3-nose-timer-1.0.1.tar.gz
822f06d74be76170980076a2fca0336dea76b5988acc55528f688a1587f2fc454018bc7ae39098fd9f7da7348f69d91274d84c7d6e48235c171b50787b081bb4  assertEquals.patch
"
